<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>注册</h1>
<p style="color:red; font-weight:1000">${msg }</p>
<%--${pageContex.request.contexPath }/RegistServlet --%>
<form action='<c:url value="/RegistServlet"></c:url>' method="post">
用户名：<input type="text" name="username" value="${user.username }" /><br/>
密&nbsp&nbsp&nbsp&nbsp码：<input type="password" name="password" value="${user.password }" /><br/>
<input type="submit" value="注册"  />
</form>	
</body>
</html> 